package com.wangpu.oa.service;

import java.util.List;

import com.wangpu.oa.dto.UserContext;
import com.wangpu.oa.entity.MenuEntity;
import com.wangpu.oa.exception.AccountNotFoundException;

public interface UserService {
	
	/**
	 * 用户登录
	 * @param account
	 * @param password
	 * @param loginIp
	 * @return 用户上下文
	 * @throws AccountNotFoundException
	 * @throws AccountPasswordErrorException
	 */
	public UserContext login(String account,String password,String loginIp)throws Exception;
	
	/**
	 * 加载用户拥有的菜单
	 * @param userId  
	 * @return
	 * @throws Exception
	 */
	List<MenuEntity> loadUserMenus(String userId) throws Exception;
	
}
